<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">

  <xsl:import href="../../../sys/resolver.xsl"/>
	
	<xsl:template match="uri[@ext = 'pdf']">
		<access obj="{$basePath}/view" scope="view">
			<param key="ref" value="{@relativeName}"/>
		</access>
	</xsl:template>
	
	<xsl:template match="uri[@ext = 'rtf']">
		<access obj="{$basePath}/view_{@ext}" scope="view">
			<param key="ref" value="{@relativeName}"/>
		</access>
	</xsl:template>
	
</xsl:stylesheet>